package com.bt7274.service;

import com.bt7274.pojo.PromotionPolicy;

import java.util.List;

public interface PromotionPolicyService {
    public PromotionPolicy getPromotionPolicyBySlug(String slug);

    /**
     * 获取默认促销策略
     */
    public PromotionPolicy getDefaultPromotionPolicy();

    /**
     * 查询所有促销策略
     */
    public List<PromotionPolicy> queryAll();

    /**
     * 根据ID获取促销策略
     */
    public PromotionPolicy getPromotionPolicyById(Long id);

    /**
     * 创建促销策略
     */
    public PromotionPolicy createPromotionPolicy(PromotionPolicy policy);

    /**
     * 更新促销策略
     */
    public PromotionPolicy updatePromotionPolicy(PromotionPolicy policy);

    /**
     * 删除促销策略
     */
    public boolean deletePromotionPolicy(Long id);


//    /**
//     * 获取适用于指定用户的促销策略
//     */
//    public List<PromotionPolicy> getApplicablePolicies(String userId, String targetType);
}
